package com.camel.base.feign;

import com.alibaba.fastjson.JSONObject;
import com.camel.base.model.ZsPstnnumber;
import com.camel.core.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Administrator
 */
@FeignClient(value = "network", path = "net", contextId = "ctiManager")
public interface CtiManagerService {

    /**
     * 获取已知队列的坐席信息
     * @param jsonObject
     * @return
     */
    @PostMapping("/manager/getQueueSeats")
    Result getQueueSeats(@RequestBody JSONObject jsonObject);

    /**
     * 获取外呼接入号
     * @param jsonObject
     * @return
     */
    @PostMapping("/manager/getpstnnumber")
    Result getpstnnumber(@RequestBody JSONObject jsonObject);

    /**
     * 座席状态获取
     * @param jsonObject
     * @return
     */
    @PostMapping("/manager/getAgentStatus")
    Result getAgentStatus(@RequestBody JSONObject jsonObject);

    /**
     * 创建外呼热线号码
     * @param entity
     * @return
     */
    @PostMapping("/manager/createPstNumber")
    Result createPstNumber(@RequestBody ZsPstnnumber entity);

    /**
     * 分配外呼热线号码
     * @param entity
     * @return
     */
    @PostMapping("/manager/hotPstNumber")
    Result hotPstNumber(@RequestBody ZsPstnnumber entity);

    /**
     * 删除外呼号码
     * @param entity
     * @return
     */
    @PostMapping("/manager/deletePstNumber")
    Result deletePstNumber(@RequestBody ZsPstnnumber entity);
}
